package gamebackend;


import framework.Color;
import gamebackend.GameSession.Biome;
import generators.PatternGenerator;
import gui.BlockStyle;

public class StartBiome extends Biome {

	private static final Block GREEN = new Block(BlockStyle.METAL, new Color(90, 125, 70));
	private static final int LENGTH = 500;
	
	private static final String FOREGROUND =
//			"     0   0     " +
//			"     0   0     " +
//			"     0   0     " +
//			"     0   0     " +
//			"     0   0     " +
//			"     0   0     " +
//			"     0   0     " +
//			"     0   0     " +
//			"     0   0     " +
//			"     0   0     " +
			"               " +
			"               " +
			"               " +
			"               " +
			"               " +
			"               " +
			"               " +
			"               " +
			"               " +
			"               " +
			"     0   0     " +
			"   000   000   " +
			"   000   000   " +
			"000000   000000" +
			"000000   000000" +
			"000000000000000" +
			"000000000000000" +
			"000000000000000";
	private static final String BACKGROUND = 
			"     0   0     " +
			"     00 00     " +
			"     00000     " +
			"     00000     " +
			"     00 00     " +
			"     00 00     " +
			"     00000     " +
			"     00000     " +
			"     00 00     " +
			"     00 00     " +
			"     00000     " +
			"     00000     " +
			"     00 00     " +
			"     00 00     " +
			"     00000     " +
			"     00000     " +
			"     00000     " +
			"     00000     ";
	public StartBiome(GameSession the_session) {
		the_session.super(the_session, 0, null, LENGTH);
		
		addEasyPath(new FlightPath(Block.PRIMARY_PATH, getEasyPath(), 40), getLength());
		addHardPath(new FlightPath(Block.SECONDARY_PATH, getHardPath(), 20 - getTier() * 3), getLength());
		
		addGenerator(new PatternGenerator(GREEN, FOREGROUND), LENGTH);
		addToMidGround(new PatternGenerator(new Block(BlockStyle.METAL, Block.getBackgroundColor(GREEN.getColor())), BACKGROUND), LENGTH);
//		addGenerator(new BasicBlockGenerator(GRAY, BlockRule.EMPTY, new Random(), 1), LENGTH);
	}

}
